package com.ftg.learn.bus.sharecar.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftg.learn.bus.sharecar.pojo.sharecar;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface sharecar_mapper extends BaseMapper<sharecar> {
    @Select("select * from sharecar ")
    List<sharecar> query();

    @Select("SELECT  column_name,column_comment FROM information_schema.columns " +
            "WHERE table_schema ='system' AND  table_name = 'sharecar'")
    List<Map<String,Object>> selectColumnNameAndComment();
}
